package com.coderman.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by ${fanchunshuai} on 2017-3-10.
 *
 * @version: V1.0
 * @Desc:
 * @Copyright (c) 2017 58到家-版权所有
 */
@Controller
public class IndexController {
    @RequestMapping(value="/index",method = RequestMethod.GET)
    public String index(){
        return "index";
    }

    @RequestMapping(value="/login",method = RequestMethod.GET)
    public String login(){
        return "login";
    }

    @RequestMapping(value="/test",method = RequestMethod.GET)
    public String test(){
        return "atest";
    }

    @RequestMapping(value="/get",method = RequestMethod.GET)
    public String get(){
        System.out.println("---------sadfasdfasdf-------------------");
        return "atest";
    }
}
